home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2006 February / Gamestar_81_2006-02_dvd.iso / Red Shark / GameSettings.script < prev    next >
Text File  |  2002-07-18  |  1KB  |  45 lines

  1. //-------------------------------------------------------------------
  2. //
  3. //  This code is copyright 2001 by G5 Software.
  4. //  Any unauthorized usage, either in part or in whole of this code
  5. //  is strictly prohibited. Violators WILL be prosecuted to the
  6. //  maximum extent allowed by law.
  7. //
  8. //-------------------------------------------------------------------
  9.  
  10. class CVideoSettings
  11. {
  12.   int   WindowWidth    = 800;
  13.   int   WindowHeight   = 600;
  14.   int   ColorDepth     = 16;
  15.   bool  WindowMode     = false;
  16.   float ForestDetail   = 0.0;
  17.   float TerrainDetail  = 0.0;
  18.   float GammaCoef      = 0.375;
  19.   bool  ConsoleEnabled = false;
  20. }
  21.  
  22. class CSoundSettings
  23. {
  24.   int ChannelsQty    = 2;
  25.   int SoundFrequency = 22050;
  26.   int SoundBitRate   = 16;
  27. }
  28.  
  29. class CIntroSettings extends CApplicationSettings
  30. {
  31.   array Movies = array();
  32.  
  33.   void CIntroSettings()
  34.   {
  35.     string VideoPath = Core_GetRegistryValue("HKLM", m_AppRegistryPath, "VideoPath");
  36.     if ("void" == VideoPath)
  37.       VideoPath = "Video/";
  38.  
  39.     Movies.addElement(VideoPath + "cenega.avi");
  40.     Movies.addElement(VideoPath + "bukaintro.avi");
  41.     Movies.addElement(VideoPath + "g5intro.avi");
  42.     Movies.addElement(VideoPath + "gameintro.avi");
  43.   }
  44. }
  45.